package com.css.fxfzysx.modules.cztDataMange.result;

import lombok.Data;

import java.util.List;


/**
 * @Author: zhangSongRui
 * @CreateTime: 2022/12/27
 * @Description: 解析文件的结果,包含解析后的数据和校验结果
 */
@Data
public class ParsingResult {
    //校验结果 ok为成功
    private String message;
    //解析出来的shp数据
    private List<List<Object>> shpList;
    //解析出来的excel数据
    private List<List<String>> excelList;

    public ParsingResult(String message, List<List<Object>> shpList, List<List<String>> excelList) {
        this.message=message;
        this.shpList=shpList;
        this.excelList=excelList;
    }

    //获取shp的数据
    public static ParsingResult shpData(String message, List<List<Object>> list) {
        return new ParsingResult(message, list,null);
    }
    //获取excel的数据
    public static ParsingResult excelData(String message, List<List<String>> list) {
        return new ParsingResult(message, null,list);
    }
}
